import Vue from 'vue'

export default Vue.extend({
  template: '<div><i v-if="show" class="icon iconfont icon-L" @click="toParents" style="color: #ff0000;"></i></div>',
  data() {
    return {
      show: ''
    }
  },
  methods: {
    toParents() {
      // this.params.context.componentParent.methodFromParent(this.params)
    }
  },
  mounted() {
    this.params.value.toLowerCase() === 'y' ? this.show = true : this.show = false
  }
})
